import request from '@/utils/request'


export function getList(params) {
  return request({
    url: '/visit/list',
    method: 'get',
    params
  })
}

export function detail(params) {
  return request({
    url: '/visit/detail-visit',
    method: 'get',
    params
  })
}

export function detailVisitDrug(params) {
  return request({
    url: '/visit/detail-visit-drug',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: '/visit/add-visit',
    method: 'post',
    data
  })
}

export function updateVisitStatus(data) {
  return request({
    url: '/visit/update-visit-status',
    method: 'post',
    data
  })
}


export function edit(data) {
  return request({
    url: '/visit/edit',
    method: 'put',
    data
  })
}

export function del(data) {
  return request({
    url: '/visit/remove/'+data,
    method: 'delete',
    data
  })
}
